package com.ruoyi.cmdb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * ip列表对象 tb_ip
 * 
 * @author ruoyi
 * @date 2023-01-25
 */
public class TbIp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** ip */
    @Excel(name = "ip")
    private String ip;

    /** netmask */
    @Excel(name = "netmask")
    private String netmask;

    /** gateway */
    @Excel(name = "gateway")
    private String gateway;

    /** idc简称 */
    @Excel(name = "idc简称")
    private String idc;

    /** 管理员id */
    @Excel(name = "管理员id")
    private String employeeId;

    /** 状态（0正在使用 1预留 2空闲） */
    @Excel(name = "状态", readConverterExp = "0=正在使用,1=预留,2=空闲")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setNetmask(String netmask) 
    {
        this.netmask = netmask;
    }

    public String getNetmask() 
    {
        return netmask;
    }
    public void setGateway(String gateway) 
    {
        this.gateway = gateway;
    }

    public String getGateway() 
    {
        return gateway;
    }
    public void setIdc(String idc) 
    {
        this.idc = idc;
    }

    public String getIdc() 
    {
        return idc;
    }
    public void setEmployeeId(String employeeId) 
    {
        this.employeeId = employeeId;
    }

    public String getEmployeeId() 
    {
        return employeeId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ip", getIp())
            .append("netmask", getNetmask())
            .append("gateway", getGateway())
            .append("idc", getIdc())
            .append("employeeId", getEmployeeId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
